<h1>Listing types</h1>

<table>
  <tr>
    <th>Name</th>
  </tr>

<% @types.each do |type| %>
  <tr>
    <td><%=h type.name %></td>
    <td><%= link_to 'Show', type %></td>
    <td><%= link_to 'Edit', edit_type_path(type) %></td>
    <td><%= link_to 'Destroy', type, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New type', new_type_path %>